package com.jiangxjsy.core.common;

import com.jiangxjsy.core.constant.BaseStatusConstant;
import lombok.Getter;

/**
 * wukong-crm-master
 * 蒋胜宇
 * 2025/6/14 10:50
 */

@Getter
public enum BaseStatus {
    OPEN(BaseStatusConstant.OPEN),
    CLOSE(BaseStatusConstant.CLOSE);

    private final Integer status;

    BaseStatus(Integer status) {
        this.status = status;
    }

    public static BaseStatus valueOf(Integer status) {
        for (BaseStatus value : values()) {
            if (value.status.equals(status)) {
                return value;
            }
        }
        return null;
    }
}
